<template>
	<view class="agree">
		<rich-text :nodes="content" >
		</rich-text>
	</view>
</template>

<script>
	import * as Api from '@/api/recovery'
	export default{
		data(){
			return{
				content:''
			}
		},
		methods:{
			getPageData(callback) {
			  const app = this
			  const pageId = app.options.pageId || 0
			  Api.getAgreement()
			    .then(result => {
					console.log(result)
					this.content=result.data.detail.content
			    })
			    .finally(() => callback && callback())
			},
		},
		onLoad() {
			this.getPageData()
		}
	}
</script>

<style>
	.agree{
		padding: 20rpx;
	}
</style>